import Vue from "vue";
import Vuex from "vuex";
import user from "./user";
import cart from "./cart";
import category from "./category";
import persistedState from "vuex-persistedstate";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  getters: {},
  mutations: {},
  actions: {},
  modules: {
    user,
    category,
    cart,
  },
  plugins: [persistedState({ storage: window.sessionStorage })],
});
